package org.wanda.pv.model.basic;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.nutz.dao.DB;
import org.nutz.dao.entity.annotation.*;
import org.wanda.pv.framework.base.BaseModel;

import java.util.List;

/**
 * @author lxy
 * @date 2018/11/15 11:10
 */

@Comment("要点库")
@Table("wd_point_room")
public class PointRoom extends BaseModel {
    @Column
    @Id
    @Prev(els = {@EL("$me.idGen()")})
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Comment("要点库分类")
    @Column("point_room_name")
    @ColDefine(type = ColType.VARCHAR,width = 100)
    private String name;


    @ManyMany(relation="wd_re_point_point_room",from="point_room_id",to="point_id")
    private List<Point> points;







    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Point> getPoints() {
        return points;
    }

    public void setPoints(List<Point> points) {
        this.points = points;
    }
}
